package com.jeasonzhao.report.model.chart;

import com.jeasonzhao.commons.utils.Algorithms;
import com.jeasonzhao.report.codes.DockModes;

public class ChartCollection extends java.util.Vector<Chart>
{
    private static final long serialVersionUID = 1L;
    private DockModes m_dockMode = null;
    public ChartCollection()
    {
        super();
    }

    public DockModes getDockMode()
    {
        return null == m_dockMode || m_dockMode.equals(DockModes.Top) || m_dockMode.equals(DockModes.Left) ? DockModes.Top :
            DockModes.Bottom;
    }

    public void setDockMode(DockModes mode)
    {
        m_dockMode = mode;
    }

    public int hashCode()
    {
        return super.hashCode();
    }

    public boolean equals(Object obj)
    {
        return Algorithms.areEquals(this,obj);
    }
}
